-- GENERATED SPELL FOR [Dark Screecher] --


function spell0_8927(pUnit, Event) --@Aural Shock,Self--
pUnit:FullCastSpellOnTarget(14538,pUnit)
pUnit:RegisterEvent('Sorts_8927', 644, 1)
end

function spell1_8927(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_8927', 6330, 1)
end

function Sorts_8927(pUnit, Event)
local choix_sorts_8927 = math.random(0, 1)
if choix_sorts_8927 == 0 then
pUnit:RegisterEvent('spell0_8927', 1, 1)
end
if choix_sorts_8927 == 1 then
pUnit:RegisterEvent('spell1_8927', 1, 1)
end
end

function mob8927_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8927', math.random(1500, 3000), 1)
end

function mob8927_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8927_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8927_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8927, 1, 'mob8927_Action')
RegisterUnitEvent(8927, 2, 'mob8927_Leave')
RegisterUnitEvent(8927, 3, 'mob8927_Kill')
RegisterUnitEvent(8927, 4, 'mob8927_Die')
